import request from '@/utils/request'

// 查询货柜列表
export function listCounter(query) {
  return request({
    url: '/system/counter/list',
    method: 'get',
    params: query
  })
}

// 查询货柜详细
export function getCounter(id) {
  return request({
    url: '/system/counter/' + id,
    method: 'get'
  })
}
// 查询编辑详情
export function getCounterEditInfo(id) {
  return request({
    url: '/system/counter/edit/info/' + id,
    method: 'get'
  })
}

// 新增货柜
export function addCounter(data) {
  return request({
    url: '/system/counter',
    method: 'post',
    data: data
  })
}

// 修改货柜
export function updateCounter(data) {
  return request({
    url: '/system/counter',
    method: 'put',
    data: data
  })
}

// 删除货柜
export function delCounter(id) {
  return request({
    url: '/system/counter/' + id,
    method: 'delete'
  })
}

